home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggeeeettttaaaabbbbiiii((((3333CCCC)))) ggggeeeettttaaaabbbbiiii((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- _gggg_eeee_tttt_aaaa_bbbb_iiii - get ABI from argument vector
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_gggg_eeee_tttt_aaaa_bbbb_iiii_...._hhhh_>>>>
-
- _aaaa_bbbb_iiii______tttt _gggg_eeee_tttt_aaaa_bbbb_iiii _((((_iiii_nnnn_tttt _gggg_eeee_nnnn_eeee_rrrr_iiii_cccc______ssss_iiii_zzzz_eeee_,,,, _iiii_nnnn_tttt _mmmm_oooo_dddd_iiii_ffff_yyyy______aaaa_bbbb_iiii______aaaa_rrrr_gggg_,,,, _cccc_hhhh_aaaa_rrrr _****_****_****_aaaa_rrrr_gggg_vvvv_,,,, _iiii_nnnn_tttt
- _****_aaaa_rrrr_gggg_cccc_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _gggg_eeee_tttt_aaaa_bbbb_iiii is used to determine whether to use the 32-bit ABI (_a_b_i_3_2) or the
- 64-bit ABI (_a_b_i_6_4). First it checks the _a_r_g_v list for "-32" or "-64". If
- neither of these is given, then it checks the _a_r_g_v list for a "-mips[1-
- 4]" option. Mips 1 and 2 imply _a_b_i_3_2 while mips 3 and 4 imply _a_b_i_6_4. If
- none of the _a_r_g_v options specify the abi, then we check the _S_G_I__A_B_I
- environment variable, which can be set to either "-32" or "-64". If
- _S_G_I__A_B_I is not in the environment, then we check what kernel is
- installed. If we are running on a system that has the 64-bit kernel,
- then we default to _a_b_i_6_4; else we default to _a_b_i_3_2.
-
- The _g_e_n_e_r_i_c__s_i_z_e parameter says whether to return the ABI for the generic
- size (_a_b_i_3_2 or _a_b_i_6_4), or to return the specific ABI (_a_b_i_o_3_2 or _a_b_i_6_4).
-
- The _m_o_d_i_f_y__a_b_i__a_r_g parameter says whether to ignore the _a_r_g_v list when
- determining the ABI, or, if we do use the _a_r_g_v list, whether to preserve
- the _a_r_g_v list, or add the default abi value to the _a_r_g_v list, or remove
- the abi value from the _a_r_g_v list. This gives extra flexibility to users
- in how ABI options are handled in the _a_r_g_v list. This is also why the
- _a_r_g_v and _a_r_g_c options are passed by address, so their values can possibly
- be modified by _g_e_t_a_b_i().
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _gggg_eeee_tttt_aaaa_bbbb_iiii(1)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _gggg_eeee_tttt_aaaa_bbbb_iiii prints an error message on the standard error and returns _n_o_a_b_i
- when it encounters an error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-